package net.suncapper.wcss.web.controller;

import org.springframework.web.bind.annotation.RequestMapping;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import net.suncapper.wcss.common.JsonResponse;
import net.suncapper.wcss.service.IDictionaryService;
import net.suncapper.wcss.model.domain.Dictionary;

import java.util.List;


/**
 *
 *  前端控制器
 *
 *
 * @author ztr
 * @since 2025-11-05
 * @version v1.0
 */
@RestController
@RequestMapping("/api/dictionary")
public class DictionaryController {


    @Autowired
    private IDictionaryService dictionaryService;


   @GetMapping("listByType")
    public JsonResponse listByType(String type)
   {
       List<Dictionary> list=dictionaryService.listByType(type);
       return JsonResponse.success(list);
   }


}

